<?php
namespace app\property\validate;
use think\Validate;
class Workrecord extends Validate {
    protected $rule=[
        'type|工种'=>'require|token:hash',
        'content|派工内容'=>'require',
        'date|日期'=>'require',
        'starttime|工作开始时间'=>'require',
        'endtime|工作结束时间'=>'require',
        'worktime|工作用时'=>'float',
        'efficiency|效率系数'=>'float',
        'coefficient|难度系数'=>'float|gt:0',
        'environmental|环境系数'=>'float',
        'userid'=>'require',
        'username'=>'require'
    ];
}